package cn.gson.springboot.model.dao.afterdao;

import cn.gson.springboot.model.pjos.Maintain;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.transaction.annotation.Transactional;

public interface MaintainDao extends CrudRepository<Maintain, Integer> {
//    合并
    @Transactional
    @Modifying
    @Query(nativeQuery = true,value = "update maintain set custom_id = ?1 where custom_id = ?2")
    public void update(Integer daoId,Integer congId);
}
